<?php
/**
* Template designed by 12leaves.com
* 12leaves.com - Free ecommerce templates and design services
*
* Common Template
* 
* @package templateSystem
* @copyright Copyright 2009-2010 12leaves.com
* @copyright Copyright 2003-2012 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_header.php 836 2012-01-01 20:33:58Z webchills $
*/
?>
<script language="JavaScript">
	<!--
	var theImages = new Array() // do not change this

	theImages[0] = 'http://x43-artshop.com/images/01.jpg'
	theImages[1] = 'http://x43-artshop.com/images/02.jpg'
	theImages[2] = 'http://x43-artshop.com/images/03.jpg'
	theImages[3] = 'http://x43-artshop.com/images/04.jpg'
	theImages[4] = 'http://x43-artshop.com/images/05.jpg'
	theImages[5] = 'http://x43-artshop.com/images/06.jpg'
	theImages[6] = 'http://x43-artshop.com/images/07.jpg'
	theImages[7] = 'http://x43-artshop.com/images/08.jpg'
	theImages[8] = 'http://x43-artshop.com/images/09.jpg'
	theImages[9] = 'http://x43-artshop.com/images/01.jpg'
	theImages[10] = 'http://x43-artshop.com/images/10.jpg'
	theImages[11] = 'http://x43-artshop.com/images/11.jpg'
	theImages[12] = 'http://x43-artshop.com/images/12.jpg'
	theImages[13] = 'http://x43-artshop.com/images/13.jpg'
	theImages[14] = 'http://x43-artshop.com/images/14.jpg'
	theImages[15] = 'http://x43-artshop.com/images/15.jpg'
	theImages[16] = 'http://x43-artshop.com/images/16.jpg'
	theImages[17] = 'http://x43-artshop.com/images/17.jpg'
	theImages[18] = 'http://x43-artshop.com/images/18.jpg'
	theImages[19] = 'http://x43-artshop.com/images/19.jpg'
	theImages[20] = 'http://x43-artshop.com/images/20.jpg'
	theImages[21] = 'http://x43-artshop.com/images/21.jpg'
	theImages[22] = 'http://x43-artshop.com/images/22.jpg'
	theImages[23] = 'http://x43-artshop.com/images/23.jpg'
	theImages[24] = 'http://x43-artshop.com/images/24.jpg'
	theImages[25] = 'http://x43-artshop.com/images/25.jpg'
	theImages[26] = 'http://x43-artshop.com/images/26.jpg'
	theImages[27] = 'http://x43-artshop.com/images/27.jpg'
	theImages[28] = 'http://x43-artshop.com/images/28.jpg'
	theImages[29] = 'http://x43-artshop.com/images/29.jpg'
	theImages[30] = 'http://x43-artshop.com/images/30.jpg'


	var j = 0
	var p = theImages.length;

	var preBuffer = new Array()
	for (i = 0; i < p; i++){
	   preBuffer[i] = new Image()
	   preBuffer[i].src = theImages[i]
	}

	var whichImage = Math.round(Math.random()*(p-1));
	
	function showImage(){
		// document.write('<img src="'+theImages[whichImage]+'" width=900 height=200>');
		var wrapper = document.getElementById("logoWrapper");
		
		console.info(wrapper);
		// wrapper.style.backgroundImage = "url('http://localhost/zen-cart/includes/templates/viennabright/images/object166210524.png'),url('http://localhost/zen-cart/includes/templates/viennabright/images/object0.png'), url('" + theImages[whichImage] + "')";
		wrapper.style.backgroundImage =  "url('" + theImages[whichImage] + "')";
		wrapper.style.backgroundPosition = "0 0";
		wrapper.style.backgroundRepeat = "no-repeat";
		
		
	}

	//-->
</script>


<?php
  // Display all header alerts via messageStack:
  if ($messageStack->size('header') > 0) {
    echo $messageStack->output('header');
  }
  if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
  echo htmlspecialchars(urldecode($_GET['error_message']));
  }
  if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
   echo htmlspecialchars($_GET['info_message']);
} else {

}

?>


<!--bof-header logo and navigation display-->
<?php
if (!isset($flag_disable_header) || !$flag_disable_header) {
?>

<div id="headerWrapper">

<!--bof-header ezpage links-->
<?php /*
<div class="topper-menu float-right">
<?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
<?php } ?>
</div>
*/ ?>
<!--eof-header ezpage links-->


<!--bof-navigation display-->
<!--eof-navigation display-->

<!--bof-branding display-->
<div id="logoWrapper">
    
	

</div>
<script language="JavaScript">
<!--
	showImage();
//-->
</script>
<div class="clearBoth"></div>
<!--eof-branding display-->

<!--eof-header logo and navigation display-->

<!--bof-optional categories tabs navigation display-->
<?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
<!--eof-optional categories tabs navigation display-->

<?php // require($template->get_template_dir('tpl_top_nav.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_top_nav.php'); ?>


</div>
<?php } ?>